﻿<%@ Page Title="Домашняя страница" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="userinfo.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .DataWebControlStyle
        {}
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:LoginView ID="LoginView1" runat="server" EnableViewState="true">
                    <AnonymousTemplate>
                        Добро пожаловать на курсы SoftServe!

                        [ <a href="~/Account/Login.aspx" ID="HeadLoginStatus" runat="server">Войти</a> ]
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Добро пожаловать, <span class="bold">
                        <asp:LoginName ID="HeadLoginName" runat="server" />
                            <a href="Site.master">Site.master</a>
                        </span>!
                        [
                        <asp:LoginStatus ID="HeadLoginStatus" runat="server" LogoutAction="Redirect" LogoutText="Выход" LogoutPageUrl="~/"/>
                        ]
                        <div class="clear">
            
                    </LoggedInTemplate>
                </asp:LoginView>

        </div>
    <br /><div>  

 Нажмите на эту ссылку:   

    <a href="userinfo.aspx?id=0">Default.aspx?id=0</a><br />  

    А таперь на эту:   

    <a href="userinfo.aspx?id=1">Default.aspx?id=1</a><br />  

    И вот на эту:   

    <a href="userinfo.aspx?id=2">Default.aspx?id=2</a>     

   </div>  

                                <asp:GridView ID="GridView1" runat="server">
                                </asp:GridView>
            <p>
                </p><asp:LoginView id="LoginView2" runat="server">
                    <AnonymousTemplate>
                            <h2>   All news for anonimous users</h2>
                            <p>
                                <asp:GridView ID="AnonimView" runat="server" CssClass="DataWebControlStyle">
                                    <HeaderStyle CssClass="HeaderStyle" />
                                    <AlternatingRowStyle CssClass="AlternatingRowStyle" />
                                </asp:GridView>
                            </p>
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        Thanks for logging in 
                        <asp:LoginName id="LoginName1" runat="Server"></asp:LoginName>.
                        
                    </LoggedInTemplate>
                    <RoleGroups>
                        <asp:RoleGroup Roles="Admin">
                            <ContentTemplate>
                                <asp:LoginName id="LoginName2" runat="Server"></asp:LoginName>, you
                                are logged in as an administrator.
                            </ContentTemplate>
                        </asp:RoleGroup>
                    </RoleGroups>
                </asp:LoginView>



      
        
    </div>
</asp:Content>
